<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<StatementAdjustTotalModelView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Finweb :: Corrigir valor do saldo final
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PageTitle" runat="server">
    <div class="title">Corrigir valor do saldo final</div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>
        <%= Html.Hidden("bankId", Model.Bank.Id)%>
        <%= Html.Hidden("fromdate", Model.FromDate.ToDateId())%>
        <%= Html.Hidden("month", Model.ToDate.ToDateId())%>

        <table>
            <tr>
                <td>Banco:</td>
                <td><%= Html.Encode(Model.Bank.Name) %></td>
            </tr>
            <tr>
                <td>Conta:</td>
                <td><%= Html.Encode(Model.Bank.AccountId)%></td>
            </tr>
            <tr>
                <td>Saldo atual (sem limite):</td>
                <td><%= string.Format("{0:N2}", Model.StatementManager.GetBalance(Model.Bank.Id)) %></td>
            </tr>
            <tr>
                <td>Valor atual real (sem limite):</td>
                <td><%= Html.TextBox("realValue") %></td>
            </tr>
        </table>
        <p>
            <input type="submit" value="Corrigir" />
        </p>

    <% } %>
</asp:Content>

